Back out part of commit db5e84af202
authorEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 19 Feb 2024 02:08:51 +0000 (18:08 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 19 Feb 2024 02:08:51 +0000 (18:08 -0800)
* lisp/gnus/gnus-agent.el (gnus-category-make-function-1): This code is
untested and was not meant to be part of the earlier commit.

lisp/gnus/gnus-agent.el

index 0928b1797877f56885f49ec064fe592dd9c50ce0..1726b806913b7c221c1903bbcb972a0017f09c36 100644 (file)
@@ -2920,9 +2920,8 @@ The following commands are available:
    ;; Functions are just returned as is.
    ((or (symbolp predicate)
        (functionp predicate))
-    (let ((fun (or (cdr (assq predicate gnus-category-predicate-alist))
-                  predicate)))
-      (if (symbolp fun) `(,fun) `(funcall ',fun))))
+    `(,(or (cdr (assq predicate gnus-category-predicate-alist))
+          predicate)))
    ;; More complex predicate.
    ((consp predicate)
     `(,(cond